<template>
  <div class="operation-item">
    <span><b v-if="isRequ" style="color:red;">*</b>{{name}}：</span>
    <slot></slot>
  </div>
</template>
<script>
export default {
  name: 'operation-item',
  props: {
    name: {
      type: String,
      default: ''
    },
    isRequ:{
      type:Boolean,
      default:false
    }
  }
}
</script>
<style lang="less" scoped>
.operation-item {
  float: left;
  margin-top: 10px;
  margin-right: 20px;
  span {
    display: inline-block;
    width: 85px;
  }
}
</style>
